System.Collections.IList.Remove Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Searches the list for the first item that compares equal to value. If one is found, it is removed. Otherwise, the list is unchanged. This implementation throws a NotSupportedException indicating that the list is read-only.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private void IList.Remove(
	Object value
)
Visual Basic (Declaration)
Private Sub System.Collections.IList.Remove ( _
	value As Object _
) Implements IList.Remove
Visual C++
private:
virtual void System.Collections.IList.Remove (
	Object^ value
) sealed = IList::Remove

Parameters

value
Object
The item to remove from the list.

Remarks

Equality in the list is determined by the default sense of equality for T. If T implements IComparable<T>, the Equals method of that interface is used to determine equality. Otherwise, Object.Equals is used to determine equality.

Exceptions

ExceptionCondition
System..::NotSupportedExceptionAlways thrown.

See Also